/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package thienphuc.patient.dao;

import java.util.List;
import thienphuc.patient.dto.ThongTinBenhNhan;

/**
 *
 * @author QuocDat
 */
public interface ThongTinBenhNhanDAO extends Dao<ThongTinBenhNhan, Integer> {
    public final static String THONG_TIN_BENH_NHAN_MA_BENH_NHAN = "maBenhNhan";
    public final static String THONG_TIN_BENH_NHAN_TEN_BENH_NHAN = "tenBenhNhan";
    public final static String THONG_TIN_BENH_NHAN_PHAI = "phai";
    public final static String THONG_TIN_BENH_NHAN_NAM_SINH = "namSinh";
    public final static String THONG_TIN_BENH_NHAN_DIA_CHI = "diaChi";
    public final static String THONG_TIN_BENH_NHAN_DIEN_THOAI = "dienThoai";
    public final static String THONG_TIN_BENH_NHAN_NGAY_TAO = "ngayTao";
    public final static String THONG_TIN_BENH_NHAN_BENH_ANS = "benhAns";
    
    /**
     * Find ThongTinBenhNhan by TenBenhNhan
     * @param tenBenhNhan
     * @return
     * @throws Exception 
     */
    List<ThongTinBenhNhan> findByTenBenhNhan(String tenBenhNhan) throws Exception;
    
    /**
     * Find ThongTinBenhNhan by Phai
     * @param phai
     * @return
     * @throws Exception 
     */
    List<ThongTinBenhNhan> findByPhai(boolean phai) throws Exception;
    
    /**
     * Find ThongTinBenhNhan by NamSinh
     * @param namSinh
     * @return
     * @throws Exception 
     */
    List<ThongTinBenhNhan> findByNamSinh(int namSinh) throws Exception;

}
